package com.edu.user.controller;

import com.edu.entity.HfdClassSkuInfo;
import com.edu.user.service.IHfdClassSkuInfoService;
import com.edu.vo.PageResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jr
 * @since 2021-04-24
 */
@CrossOrigin
@RestController
@RequestMapping("/manage/class")
public class HfdClassSkuInfoController {
    @Autowired
    private IHfdClassSkuInfoService hfdClassSkuInfoService ;

    /**
     * 查询视频列表
     * @param currentPage
     * @param pageSize
     * @return
     */
    @ResponseBody
    @RequestMapping("queryListByPage")
    public PageResultVO<HfdClassSkuInfo> getList(@PathParam("currentPage") Integer currentPage ,
                                                 @PathParam("pageSize") Integer pageSize,
                                                 @PathParam("name") String name ){


        return hfdClassSkuInfoService.getClassSkuList(currentPage,pageSize,name);
    }

}
